package com.qf.lanzhou.blog.api.util;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;

/**
 * @author jack
 */
public class TimeUtil {
    public static String getStandardTime(Timestamp timestamp){
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String standarTime = sdf.format(timestamp);
        return standarTime;
    }
}
